#include "LearnCase.h"
#include "CaseExplicitDemo.h"

#include <iostream>

using namespace std;

void showLearnCaseDemoMenu()
{
	cout << "**********************************************************" << endl;
	cout << "常见案例演示 学习案例菜单:" << endl;
	cout << "输入对应选项索引号并回车进入：" << endl;
	cout << "  1. 案例一：禁止隐式转换的原因" << endl;
	cout << "  Q. 退出；" << endl;
	cout << "**********************************************************" << endl;
	cout << "请输入:" << endl;
}

void gotoLearnCaseDemoMenu()
{
    char commond;
	while (showLearnCaseDemoMenu(), cin >> commond, 'q' != tolower(commond)) {
		switch (tolower(commond)) {
		case '1':
			runCaseExplicitDemo();
			break;
		}
	}
}